package edu.byui.chat;

import java.util.ArrayList;

public class ReadCommand implements Sub {
	@SuppressWarnings("unchecked")
	@Override
	public void runSub(ArrayList parameters) {
		Command com = (Command)parameters.get(0);
		String username = com.getUsername();
		int num = com.getBody().getMessage_id();
		SetData setSQL = new SetData();
		setSQL.readMessage(username, num);
	}
}
